<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
<div id="Application">
    <div>{{ count }}</div>
    <button @click.left="click(2)">加2</button>
</div>
</body>
<script>
    const App = {
        data() {
            return {
                count: 0
            }
        },
        methods: {
            click(event) {
                this.count += event
            },
            log(){
                console.log(this.count)
            }
        }

    }
    Vue.createApp(App).mount("#Application")
</script>
</html>